package com.bw.goods.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 订单表 
 * 
 * @author wj
 * @email sunlightcs@gmail.com
 * @date 2021-08-14 18:06:04
 */
@Data
@TableName("tc_order")
public class OrderEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 订单id
	 */
	@TableId
	private Integer orderId;
	/**
	 * 订单编号
	 */
	private String orderNo;
	/**
	 * 用户id
	 */
	private Integer userId;
	/**
	 * 总金额
	 */
	private BigDecimal sumPrice;
	/**
	 * 实际金额
	 */
	private BigDecimal realPrice;
	/**
	 * 下单时间
	 */
	private Date createTime;
	/**
	 * 订单状态
	 */
	private Integer orderState;
	/**
	 * 支付状态
	 */
	private Integer payState;
	/**
	 * 发货状态
	 */
	private Integer sendState;
	/**
	 * 收货状态
	 */
	private Integer gatherState;
	/**
	 * 商品id
	 */
	private Integer productId;
	/**
	 * 物流id
	 */
	private Integer logisticsId;
	/**
	 * 退款id
	 */
	private Integer refundId;

}
